import { Line } from "@ant-design/plots";

export default function LineCharts(props:{data:any[]}) {
  const config = {
    data:props.data,
    width:500,
    height: 300,
    xField: "year",
    yField: "value",
    style: {
      lineWidth: 2,
    },
  };
  return <Line {...config} />;
}
